<!DOCTYPE html>
<!--suppress ALL-->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<new th:fragment="hasbei_top">
    <script type="text/javascript">
        function search() {
            var sear = $(".top-search").val()
            console.log(sear)
            window.location.href="/search?sear="+sear;
        }
    </script>
    <div class="content-top">
        <div class="content-top-info">
            <div class="content-top-left">
                <div class="left-logo">
                    <a href="/" class="logo-info" target="_self"><img src="/icon/logo.png" alt="有贝口腔网"></a>
                </div>
                <ul class="right-list">
                    <li th:class="${zx == null?'':'right-list-active'}">
                        <a href="/consult_main" target="_self">
                            <img src="/icon/news-icon.png" alt="有贝口腔网">
                            <span>资讯</span>
                        </a>
                    </li>
                    <li th:class="${wd == null?'':'right-list-active'}">
                        <a href="/answers_main/0" target="_self">
                            <img src="/icon/qa-icon.png" alt="有贝口腔网">
                            <span>问答</span>
                        </a>
                    </li>
                </ul>
            </div>
            <div>
                <div class="content-top-right">
                    <div class="search-input">
                        <img class="search-icon" src="/icon/icon_Search.png">
                        <input class="top-search" type="text" name="kw" placeholder="请输入资讯、问题搜索" value="">
                        <input class="search-sub" onclick="search()" style="text-align: center;" value="搜索">
                    </div>

                    <div class="land-regist" th:if="${uservo == null || uservo.getUserId()==null}">
                        <a class="top-land" href="/login">登录</a>
                        <span></span>
                        <a class="top-regist" href="/login_register">注册</a>
                    </div>

                    <div class="land-success" th:if="${uservo !=null && uservo.getUserId()!=null}">
                        <div class="land-success">
                            <div class="message-notice">
                                <a th:href="${'/userStation/'+uservo.getUserId()}">
                                    <img th:src="@{/img/notice.png}" alt="有贝口腔网">
                                    <span class="notice-tip" id="msgCount" style="display:none">0</span></a>
                                <div class="notice-modul" id="myNoticeModul">
                                    <a th:href="${'/userStation/'+uservo.getUserId()}">站内消息
                                        <span class="tips-num" th:text="${uservo.getInfoSum()}"></span>
                                    </a>
                                </div>
                            </div>
                            <div class="land-success-img">
                                <a th:href="${'/user_main/'+uservo.getUserId()}">
                                    <img th:src="${uservo.getImgPath()}">
                                    <span class="land-success-name" th:text="${uservo.getUserNickname()}"></span>
                                </a>
                                <div class="img-posi-div">
                                    <a th:href="${'/user_main/'+uservo.getUserId()}"><span>个人信息</span></a>
                                    <a href="/user_exit"><span>退出登录</span></a>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</new>
</html>